def privileged_check(fn):
    def fx(n,x):
        print('正在检验权限...')
        fn(n,x)
        print('正在发送短信给',n,'......')
    return fx
@privileged_check
def savemoney(name,x):
    print(name,'存钱',x,'元')
@privileged_check
def withdraw(name,x):
    print(name,'取钱',x,'元')
savemoney('小王',200)
withdraw('小吴',400)
savemoney('小刘',200)